﻿using System;
using System.Windows.Forms;

namespace SoftPhone
{
    public partial class frmTransferCall : DevExpress.XtraEditors.XtraForm
    {
        public frmTransferCall()
        {
            InitializeComponent();
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            TransferCall();
        }

        private void txtTransferNum_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                TransferCall();
            }
        }

        private void TransferCall()
        {
            SIPManager manager = new SIPManager();
            manager.TransferCall(txtTransferNum.Text);
            this.Close();
        }
    }
}